const routes = [
  {
    path: 'dashboard',
    component: () => import('@/views/common/console/index.vue'),
    name: 'Dashboard',
    meta: { title: '主页', icon: 'dashboard', affix: true }
  },
  {
    path: 'sys/user',
    name: 'SysUser',
    component: () => import('@/views/sys/user/index.vue'),
    meta: {
      title: '用户管理',
    }
  },
  {
    path: 'sys/dept',
    name: 'SysDept',
    component: () => import('@/views/sys/dept/index.vue'),
    meta: {
      title: '部门管理'
    }
  },
  {
    path: 'sys/role',
    name: 'SysRole',
    component: () => import('@/views/sys/role/index.vue'),
    meta: {
      title: '角色管理'
    }
  },
  {
    path: 'sys/menu',
    name: 'SysMenu',
    component: () => import('@/views/sys/menu/index.vue'),
    meta: {
      title: '菜单管理'
    }
  },
  {
    path: 'sys/config',
    name: 'SysConfig',
    component: () => import('@/views/sys/config/index.vue'),
    meta: {
      title: '参数管理'
    }
  },
  {
    path: 'sys/dict',
    name: 'SysDict',
    component: () => import('@/views/sys/dict/index.vue'),
    meta: {
      title: '字典管理'
    }
  },
  {
    path: 'sys/notification',
    name: 'SysNotification',
    component: () => import('@/views/sys/notification/index.vue'),
    meta: {
      title: '消息通知'
    }
  },
  {
    path: 'sys/log',
    name: 'SysLog',
    component: () => import('@/views/sys/log/index.vue'),
    meta: {
      title: '系统日志'
    }
  }
]

export default routes;
